# coding:utf-8

from django.views.generic import ListView
from models import News

class NewsList(ListView):

    template_name = 'news/news.js'
    model = News

    def get_queryset(self):
        group = self.GET.get("group", None)
        owner = self.user